import request from '@/utils/request'
import downloadService from "@/utils/downloadService";

// 查询聊天记录列表
export function listChat(query) {
  return request({
    url: '/content/chat/list',
    method: 'get',
    params: query
  })
}

// 查询聊天记录详细
export function getChat(id) {
  return request({
    url: '/content/chat/' + id,
    method: 'get'
  })
}



// 删除通知
export function delChat(id) {
  return request({
    url: '/content/chat/' + id,
    method: 'delete'
  })
}

// 导出通知
export function exportChat() {
  return downloadService({
    url: '/content/chat/export',
    method: 'get'
  })
}

